//
//  CRProgressView.m
//  CRChatRoom
//
//  Created by CuiFengshuai on 15/11/28.
//  Copyright © 2015年 SecondGroup. All rights reserved.
//  下载进度指示器  需要引入 DACircularProgress 第三方类


#import "CRProgressView.h"

@implementation CRProgressView

- (void)awakeFromNib {
    self.roundedCorners = 5;
    self.progressLabel.textColor = [UIColor whiteColor];
    
}

- (void)setProgress:(CGFloat)progress {
    [super setProgress:progress];
    
    NSString *text = [NSString stringWithFormat:@"%.0f%%", progress * 100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}
@end
